/*
*   Copyright Spectra, Inc. All Rights Reserved.
*/
package spectra.ee.web.product.model;

import spectra.base.BasePublic;
import spectra.base.util.StringUtil;

/**
 * KB관련 클래스.
 *
 * @author bkkim
 */
public class Product
{
	/** 시작번호. */
	private int startNo;
	
	/** 마지막번호. */
    private int endNo;

    /** 제품 카테고리 아이디*/
    private String nodeId;

    private String productId;
    
    private String DisplayProductId;
    
    private String productName;
    
    private String photoFilename;
    
    private String modelNum;
    
    private String productIds = null;

    private String[] productIdList = new String[] {};
    
    private int rowsPerPage;

	public int getStartNo() {
		return startNo;
	}

	public void setStartNo(int startNo) {
		this.startNo = startNo;
	}

	public int getEndNo() {
		return endNo;
	}

	public void setEndNo(int endNo) {
		this.endNo = endNo;
	}

	public String getNodeId() {
		return nodeId;
	}

	public void setNodeId(String nodeId) {
		this.nodeId = nodeId;
	}

	public String getProductId() {
		return productId;
	}

	public void setProductId(String productId) {
		this.productId = productId;
	}

	public String getDisplayProductId() {
		return DisplayProductId;
	}

	public void setDisplayProductId(String displayProductId) {
		DisplayProductId = displayProductId;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public String getPhotoFilename() {
		return photoFilename;
	}

	public void setPhotoFilename(String photoFilename) {
		this.photoFilename = photoFilename;
	}

	public String getModelNum() {
		return modelNum;
	}

	public void setModelNum(String modelNum) {
		this.modelNum = modelNum;
	}

    public String getProductIds()
    {
        return this.productIds;
    }
    
    public void setProductIds(String productIds)
    {
        this.productIds = productIds;
    }
    
    public String[] getProductIdList()
    {
        if(productIds != null)
        {
            this.productIdList = StringUtil.split(productIds, BasePublic.COLUMN_SEPARATOR);
        }
        return this.productIdList;
    }
    
    public void setProductIdList(String[] productIdList)
    {
        this.productIdList = productIdList;
    }

    public int getRowsPerPage()
    {
        return rowsPerPage;
    }

    public void setRowsPerPage(int rowsPerPage)
    {
        this.rowsPerPage = rowsPerPage;
    }
}